package com.ternnetwork.oa.service.work;
import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.oa.dto.work.EventDto;
import org.quartz.SchedulerException;

public interface EventService {

    BaseResponse add(EventDto dto, String username) throws SchedulerException;

    BaseResponse update(EventDto dto, String username)throws SchedulerException;

    BaseResponse updateStartEnd(EventDto dto,String username) throws SchedulerException;

    BaseResponse deleteById(Long id,String username)throws SchedulerException;

    BaseResponse findAll(String start,String end,String username);

    BaseResponse findAll(String start,String end, Long userId);

    BaseResponse findAll(String start,String end);

    BaseResponse toMeFindAll(String start, String end, Long userId,String loginUsername);

    void sendRemind(Long eventId);
}
